<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<link media="all" type="text/css" rel="stylesheet" href="/yamazure/css/excite-bike/jquery-ui-1.8.18.custom.css"/>
		<link media="all" type="text/css" rel="stylesheet" href="/yamazure/css/bootstrap.css" />
		<link media="all" type="text/css" rel="stylesheet" href="/yamazure/css/additional.css" />
		<link media="all" type="text/css" rel="stylesheet" href="/yamazure/css/responsive.css" />
<title>Yamazure :: $person.firstName&nbsp;$person.lastName</title>
</head>
<body>

<div class="navbar navbar-fixed-top">
   <div class="navbar-inner">
     <div class="container">
       <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
         <span class="icon-bar"></span>
         <span class="icon-bar"></span>
         <span class="icon-bar"></span>
       </a>
       <a class="brand" href="/yamazure/#">
       		<i class="icon-home icon-white" style="vertical-align: middle;"></i>
       		Yamazure&nbsp;&nbsp;&nbsp;&nbsp;
       </a>
       <div class="nav-collapse">
       	 <ul class="nav tooltip-demo">
       	 	<li class="dropdown">
       	 		<a class="dropdown-toggle" data-toggle="dropdown" href="#" rel="tooltip" data-original-title="Person Management with Yamasura">
       	 			<i class="icon-user icon-white"></i>
       	 			Person
       	 			<b class="caret"></b>
       	 		</a>
       	 		<ul class="dropdown-menu">
       	 			<li><a href="/yamazure/person">Create</a></li>
       	 			<li><a href="/yamazure/person/search">Search</a></li>
       	 			<li><a href="/yamazure/person/result">List</a></li>
       	 		</ul>
       	 	</li>
       	 	<li class="dropdown">
       	 		<a class="dropdown-toggle" href="#" data-toggle="dropdown" rel="tooltip" data-original-title="Item Management with Yamasura">
       	 			<i class="icon-tags icon-white"></i>
       	 			Item
       	 			<b class="caret"></b>
       	 		</a>
       	 		<ul class="dropdown-menu">
       	 			<li><a href="/yamazure/item">Create</a></li>
       	 			<li><a href="/yamazure/item/search">Search</a></li>
       	 			<li><a href="/yamazure/item/search/result">List</a></li>
       	 		</ul>
       	 	</li>
       	 </ul>
       </div>
     </div>
   </div>
 </div>
 
 <div class="container"> 
<table cellpadding="3" cellspacing="1" class="table table-striped table-condensed">
	<tr>
		<td colspan="3"><h4>Detail</h4></td>
	</tr>
	<tr>
		<td><b>FirstName</b></td>
		<td>$person.firstName</td>
	</tr>
	<tr>
		<td><b>LastName</b></td>
		<td>$person.lastName</td>
	</tr>
	<tr>
		<td><b>Sex</b></td>
		<td>#if($person.gender == true) Male #else
		Female #end</td>
	</tr>
	<tr>
		<td><b>BirthDate</b></td>
		<td>$!person.birthDate</td>
	</tr>
	<tr>
		<td><b>Parent</b></td>
		<td><a href="/yamazure/person/$!person.parent.id/detail">$!person.parent.firstName&nbsp;$!person.parent.lastName</a></td>
	</tr>
	<tr>
		<td><b>Address</b></td>
		<td>$person.address</td>
	</tr>
</table>

<br></br>
<br></br>
		<table cellpadding="3" cellspacing="1" class="table table-condensed">
			<tr>
				<td colspan="2">
				<input type="button" class="btn btn-success" value="View" onclick="javascript:window.open('../$person.id/listChild','cats','scrollbars=yes,status=no,width=300,height=300')" />
				<input type="button" value="addNew" class="btn btn-primary" onclick="javascript:window.open('../$person.id/newChild','cats','scrollbars=yes,status=no,width=300,height=300')" />
				</td>
			</tr>

			<tr>
				<td><b>Child</b></td>
				<td><b>Action</b></td>
			</tr>
			#foreach($c in $childs.persons)
			<tr>
				<td>$!c.firstName</td>
				<td><a href="/yamazure/person/$!c.id/detail"> <img
					src="/yamazure/images/silk/application_view_detail.png" title="Detail"
					border="0" /></a>&nbsp;&nbsp;&nbsp; <a href="/yamazure/person/$!c.id/deleteChild">
				<img src="/yamazure/images/silk/delete.png" title="Delete" border="0" /></a>&nbsp;&nbsp;&nbsp;
				</td>
			</tr>
			#end
		</table>
		<br/><br/>
 		<footer class="footer">
 		&copy; Yamazure 2012
 		</footer>
		</div>

		<script src="/yamazure/js/jquery-1.7.1.min.js"></script>
		<script src="/yamazure/js/jquery-ui-1.8.18.custom.min.js"></script>
		<script src="/yamazure/js/bootstrap.js"></script>
		<script>
			$("#datepicker").datepicker();
			 $('a[rel=tooltip]').tooltip({
			'placement': 'bottom'
			});
		</script>
</body>
</html>


